package Demo16;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-21
 * Time: 20:24
 */


interface ICompute {
    int computer(int n,int m);
}
class Add implements ICompute{
    @Override
    public int computer(int n, int m) {
        return n+m;
    }
}
class Sub implements ICompute{

    @Override
    public int computer(int n, int m) {
        return n-m;
    }
}


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        Add add = new Add();
        System.out.println(add.computer(a, b));
        Sub sub = new Sub();
        System.out.println(sub.computer(a, b));
    }
}
